package edu.spec.rxz.week04.class2;

public class Seal{
    private String name;
    public Seal(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }
    public void eat(Sheel sheel){
        System.out.println("I eat"+this.name+"wc"+sheel.getName());
    }
    public void eat(Sheel sheel,Prawn prawn){
        System.out.println("ws"+this.name+"wxc"+sheel.getName()+"hc"+prawn.getName());
    }
    public void eat(Sheel sheel,Prawn prawn,Fish fish){
        System.out.println("ws"+this.name+"wxc"+sheel.getName()+"hc"+prawn.getName()+"rhc"+fish.getName());
    }
    public void eat(Sheel sheel,Prawn prawn,Fish fish,String food){
        System.out.println("ws"+this.name+"wxc"+sheel.getName()+"hc"+prawn.getName()+"rhc"+fish.getName()+"last eat"+food);
    }
    public static void main(String[] args){
        Sheel s=new Sheel("sb");
        Prawn p=new Prawn("lx");
        Fish f=new Fish("dsy");
        s.eat("sb"+"lx");
    }
}
